<template>
      <div>
            <h1>余余的班级管理</h1>
                        <el-table
                                :data="tableData"
                                stripe
                                style="width: 100%">
                              <el-table-column
                                      prop="id"
                                      label="班级"
                                      width="180">
                              </el-table-column>
                              <el-table-column
                                      prop="name"
                                      label="指导老师"
                                      width="180">
                              </el-table-column>
                              <el-table-column
                                      prop="phone"
                                      label="联系电话">
                              </el-table-column>
                              <el-table-column
                                      prop="address"
                                      label="地址">
                              </el-table-column>
                              <el-table-column
                                      prop="stuNum"
                                      label="班级人数">
                              </el-table-column>
                              <el-table-column
                                      prop="cz"
                                      label="操作">
                              </el-table-column>

                        </el-table>


      </div>


</template>
<script>
    import * as api from "../utils/api";

    export default {
        name: "xkxClass",
          data(){
                return {
                      tableData: []
                      }
                },
          created() {
                this.axios({
                      url: api.GET_STUDATA,
                      method: 'get',
                      parmas: {stuid: 1}
                }).then(data => {
                      console.log(data)
                      this.tableData = data.data.data
                })
          },


    }
</script>

<style scoped>

</style>